/*
* @Author: jack.lu
* @Date: 2020/5/14
* @Last Modified by: jack.lu
* @Last Modified time: 2020/5/14 2:21 下午
*/


function Message(type, content) {
    this.type = type;
    this.content = content;
}

function AudioMessage (type, content, duration) {
    Message.call(this, type, content);
    this.duration = duration;
}

const MessageType = {
    TEXT : 'text',//文本
    EXPRESSION : 'expression',//表情
    PICTURE : 'picture',//图片
    VIDEO : 'video',//视频
    AUDIO : 'audio'
};


export {
    Message,
    AudioMessage,
    MessageType
}
